//
//  YCCameraViewController.h
//  YCCamera
//
//  Created by YC on 2017/7/18.
//  Copyright © 2017年 YC. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^UserImageBlock)(UIImage *image);

@interface YCCameraViewController : UIViewController

@property (copy, nonatomic) UserImageBlock imageBlock;

/**
 *  相机显示区域
 */
@property (weak, nonatomic) IBOutlet UIView *cameraView;
/**
 *  控制区域
 */
@property (weak, nonatomic) IBOutlet UIView *toolsView;
/**
 *  拍照完成预览
 */
@property (weak, nonatomic) IBOutlet UIView *preview;

@property (weak, nonatomic) IBOutlet UIImageView *previewImageView;

/**
 *  闪光灯
 */
@property (weak, nonatomic) IBOutlet UIButton *flashButton;
/**
 *  聚焦区域
 */
@property (weak, nonatomic) IBOutlet UIView *focusView;
/**
 *  取消按钮
 */
@property (weak, nonatomic) IBOutlet UIButton *cancelButton;
/**
 *  拍照按钮
 */
@property (weak, nonatomic) IBOutlet UIButton *cameraButton;
/**
 *  摄像头切换按钮
 */
@property (weak, nonatomic) IBOutlet UIButton *changeButton;


@end
